package com.grandtech.insurance.service.impl;

import com.grandtech.insurance.common.GenerateRandomUUID;
import com.grandtech.insurance.dao.DbKhdkxxDAO;
import com.grandtech.insurance.domain.DbKhdkxx;
import com.grandtech.insurance.domain.DbKhtydkxx;
import com.grandtech.insurance.domain.Dkyz;
import com.grandtech.insurance.domain.Khdkxx;
import com.grandtech.insurance.service.DksjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Transactional(rollbackFor={Exception.class})
@Service
public class DksjServiceImpl implements DksjService {

    @Autowired
    private DbKhdkxxDAO dbKhdkxxDAO;

    @Override
    public List<DbKhdkxx> dksjList(DbKhdkxx params) {
        return dbKhdkxxDAO.dksjList(params);
    }

    @Override
    public DbKhdkxx dkslAndZmj(DbKhdkxx params) {
        return dbKhdkxxDAO.dkslAndZmj(params);
    }

    @Override
    public List<Map> getDksjShape(Map params) {
        return dbKhdkxxDAO.getDksjShape(params);
    }

    @Transactional(rollbackFor={Exception.class})
    @Override
    public int savedk(DbKhdkxx param) {

        //新增
        int i = dbKhdkxxDAO.insertSelective(param);
        return i;
    }

    @Transactional(rollbackFor={Exception.class})
    @Override
    public int deleteByPrimaryKey(Long id) {
        return dbKhdkxxDAO.deleteByPrimaryKey(id);
    }

    @Transactional(rollbackFor={Exception.class})
    @Override
    public int updateByPrimaryKeySelective(DbKhdkxx record) {
        return dbKhdkxxDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public String getListDkbm(DbKhdkxx param) {
        return dbKhdkxxDAO.getListDkbm(param);
    }

    @Override
    public String getListDkbm1(DbKhtydkxx param) {
        return dbKhdkxxDAO.getListDkbm1(param);
    }

    @Override
    public void RefreshSql() {
        dbKhdkxxDAO.RefreshSql();
    }

    @Override
    public void RefreshSql1() {
        dbKhdkxxDAO.RefreshSql1();
    }

    @Override
    public String getCDShape(Dkyz param) {
        return dbKhdkxxDAO.getCDShape(param);
    }

    @Override
    public String getCenter(String geo) {
        return dbKhdkxxDAO.getCenter(geo);
    }

    @Override
    public List<DbKhdkxx> getYzShape(String params) {
        return dbKhdkxxDAO.getYzShape(params);
    }
}



















